package com.yitao.cms.dto.cashCoupons;

import com.skipper.base.dto.BaseDto;
import com.yitao.cms.utils.NumberUtil;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @Author: wwl
 * @Date: 2020/3/11 11:24
 * @Description:
 */
public class CashCouponsAddDto extends BaseDto {
    @ApiModelProperty("代金券id 主键")
    private Long id;
    @ApiModelProperty("代金券名称")
    private String couponsName;
    @ApiModelProperty("代金券状态，1：代金券")
    private Integer couponsType;
    @ApiModelProperty("可使用面额(不传) 单位为分")
    private Long faceValue;
    @ApiModelProperty("可使用面额(元)")
    private Double faceValueYuan;
    @ApiModelProperty("代金券发放数量")
    private Integer issuedNumber;
    @ApiModelProperty("现金券单人领取上限")
    private Integer couponsGetCount;
    @ApiModelProperty("满足金额(不传) 单位为分")
    private Long amountValue;
    @ApiModelProperty("满足金额(元)")
    private Double amountValueYuan;
    @ApiModelProperty("有效天数")
    private Integer validDays;
    @ApiModelProperty("代金券使用开始时间(格式:yyyy-MM-dd)")
    private String startTime;
    @ApiModelProperty("代金券使用结束时间(格式:yyyy-MM-dd)")
    private String endTime;
    @ApiModelProperty("用户对象，1:所有用户，2:指定用户")
    private Integer couponsUserType;
    @ApiModelProperty("现金券使用对象：1:全部商品，2:指定商品")
    private Integer couponsGoodsType;
    @ApiModelProperty("指定商品Id集合")
    private List<Long> productIdList;
    @ApiModelProperty("登录用户对象")
    private Long userId;
    @ApiModelProperty("登录门店Id")
    private Long shopId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCouponsName() {
        return couponsName;
    }

    public void setCouponsName(String couponsName) {
        this.couponsName = couponsName;
    }

    public Integer getCouponsType() {
        return couponsType;
    }

    public void setCouponsType(Integer couponsType) {
        this.couponsType = couponsType;
    }

    public Long getFaceValue() {
        return NumberUtil.yuanToCent(faceValueYuan);
    }

    public void setFaceValue(Long faceValue) {
        this.faceValue = faceValue;
    }

    public Integer getIssuedNumber() {
        return issuedNumber;
    }

    public void setIssuedNumber(Integer issuedNumber) {
        this.issuedNumber = issuedNumber;
    }

    public Integer getCouponsGetCount() {
        return couponsGetCount;
    }

    public void setCouponsGetCount(Integer couponsGetCount) {
        this.couponsGetCount = couponsGetCount;
    }

    public Long getAmountValue() {
        return NumberUtil.yuanToCent(amountValueYuan);
    }

    public void setAmountValue(Long amountValue) {
        this.amountValue = amountValue;
    }

    public Integer getValidDays() {
        return validDays;
    }

    public void setValidDays(Integer validDays) {
        this.validDays = validDays;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Integer getCouponsUserType() {
        return couponsUserType;
    }

    public void setCouponsUserType(Integer couponsUserType) {
        this.couponsUserType = couponsUserType;
    }

    public Integer getCouponsGoodsType() {
        return couponsGoodsType;
    }

    public void setCouponsGoodsType(Integer couponsGoodsType) {
        this.couponsGoodsType = couponsGoodsType;
    }

    public List<Long> getProductIdList() {
        return productIdList;
    }

    public void setProductIdList(List<Long> productIdList) {
        this.productIdList = productIdList;
    }

    public Double getFaceValueYuan() {
        return faceValueYuan;
    }

    public void setFaceValueYuan(Double faceValueYuan) {
        this.faceValueYuan = faceValueYuan;
    }

    public Double getAmountValueYuan() {
        return amountValueYuan;
    }

    public void setAmountValueYuan(Double amountValueYuan) {
        this.amountValueYuan = amountValueYuan;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }
}
